package com.atguigu.serviceedu.controller;

import com.atguigu.vo.ResultVO;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {
    @PostMapping("/login")
    public ResultVO teacherlogin(){
        return ResultVO.ok().Msg("登录成功").Data("token","zhuzhu");
    }
    @GetMapping("/info")
    public ResultVO getteacherinfo(){
        return ResultVO.ok().Data("name","zhuzhu").Data("avatar","https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=false&word=%E6%9D%8E%E6%95%8F%E9%95%90&step_word=&hs=0&pn=11&spn=7&di=7214885350303334401&pi=0&rn=1&tn=baiduimagedetail&is=3315886067%2C720613784&istype=0&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=undefined&cs=2924869026%2C3605296432&os=3315886067%2C720613784&simid=2924869026%2C3605296432&adpicid=0&lpn=0&ln=1680&fr=&fmq=1687408570454_R&fm=&ic=undefined&s=undefined&hd=undefined&latest=undefined&copyright=undefined&se=&sme=&tab=0&width=undefined&height=undefined&face=undefined&ist=&jit=&cg=star&bdtype=0&oriquery=&objurl=https%3A%2F%2Fgimg2.baidu.com%2Fimage_search%2Fsrc%3Dhttp%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F6ab2b8ea-c23a-4fb8-b681-5bd687cd8ee5%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg%26refer%3Dhttp%3A%2F%2Fsafe-img.xhscdn.com%26app%3D2002%26size%3Df9999%2C10000%26q%3Da80%26n%3D0%26g%3D0n%26fmt%3Dauto%3Fsec%3D1690000585%26t%3D355d3d0f903bdf0795b6ed4b412ced6e&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3Bxtw5i5g2fi7_z%26e3Bv54AzdH3F1tfv5ej6yAzdH3Ftpj4AzdH3Fmn9ulcwmaaaaaaaaama8jwwl&gsm=1e&rpstart=0&rpnum=0&islist=&querylist=&nojc=undefined&dyTabStr=MCwxLDMsNiw0LDUsMiw4LDcsOQ%3D%3D");
    }
}

